# ┌─────────────┐
# │ keybindings │
# └─────────────┘

# Set emacs key bindings (default)
bindkey -e

# History search
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward

# Edit command line in editor
autoload -z edit-command-line
zle -N edit-command-line
bindkey '^x^e' edit-command-line

# Reverse menu completion with Shift+Tab
bindkey '^[[Z' reverse-menu-complete

# Custom key bindings
# bindkey -s '^o' 'yy\n'  # Custom command binding

# Enable vi mode if needed (uncomment to use)
# bindkey -v
